﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DiskGallery._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 23%;
        }
        .style2
        {
            width: 98px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Button ID="btLogout" Text="Logout" NavigateUrl="~/Default.aspx" Visible="false"
        runat="server" OnClick="btLogout_Click"></asp:Button>
    <asp:Button ID="btLogin" runat="server" Text="Login" onclick="btLogin_Click" />
    <br />
    <div id="Queries">
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="disk_id" ForeColor="#333333"
            GridLines="None" HorizontalAlign="Center" Width="942px">
            <RowStyle BackColor="#E3EAEB" />
            <Columns>
                <asp:TemplateField HeaderText="Image">
                    <ItemTemplate>
                        <asp:Image ID="DiskImage" runat="server" ImageUrl='/Icons/<%= Eval("disk_icon_name") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField HeaderText="Label" DataTextField="disk_label" SortExpression="disk_label"
                    DataNavigateUrlFields='disk_id' DataNavigateUrlFormatString='DiskContent.aspx?id={0}' />
                <asp:BoundField DataField="disk_author" HeaderText="Author" SortExpression="disk_author" />
                <asp:BoundField DataField="disk_content_name" HeaderText="Content" SortExpression="disk_content_name" />
                <asp:BoundField DataField="disk_date_create" HeaderText="Date" SortExpression="disk_date_create"
                    DataFormatString="{0:dd.MM.yyyy}" />
            </Columns>
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#7C6F57" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <br />
        <asp:HyperLink ID="lnkNew" runat="server" Text="New" NavigateUrl="~/DiskContent.aspx"
            Visible="false">
        </asp:HyperLink>
    </div>
    </form>
</body>
</html>
